<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateIntegralCashTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('integral_cash', function (Blueprint $table) {
            $table->increments('id');
            $table->string('type')->comment('兑现类型');
            $table->string('number')->comment('兑现码');
            $table->string('goodname')->comment('兑现商品名称');
            $table->tinyInteger('status')->comment('兑现状态');
            $table->string('info', 256)->nullable()->comment('预留字段');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('integral_cash');
    }
}
